package app.texas.com.devilfishhouse.View.regitst;

import app.texas.com.devilfishhouse.Base.BaseBean;
import app.texas.com.devilfishhouse.Base.BaseModel;
import app.texas.com.devilfishhouse.Base.IModel;
import app.texas.com.devilfishhouse.Beans.LoginBean;

import static android.os.AsyncTask.execute;

/**
 * Created by solin on 2018/7/15.
 */

public class RegistModel extends BaseModel {
    @Override
    public void getData(String params, final ICallBack callBack) {
        execute(new Runnable() {
            @Override
            public void run() {
                LoginBean loginBean = new LoginBean();
//                loginBean.setMsg("登录成功");
                callBack.onResult(loginBean);
            }
        });
    }

    /**
     * 获取验证码
     *
     * @param phone
     * @param callBack
     */
    public void getCode(String phone, final ICallBack callBack) {
        execute(new Runnable() {
            @Override
            public void run() {
                BaseBean baseBean = new BaseBean();
                callBack.onResult(baseBean);
            }
        });
    }

    /**
     * 注册
     *
     * @param phone
     * @param code
     * @param pwd
     * @param zfb
     * @param callBack
     */
    public void regist(String phone, String code, String pwd, String zfb, final ICallBack callBack) {
        execute(new Runnable() {
            @Override
            public void run() {
                BaseBean baseBean = new BaseBean();
                callBack.onResult(baseBean);
            }
        });
    }

    @Override
    public void saveData() {

    }

    @Override
    public void clearData() {

    }
}
